翻訳と辞書
Words near each other
・ oc
・ oc-12
・ oc-3
・ oc-48
・ oc-n
・ ocal
・ occam
・ occam 2
・ occam's razor
・ occlude
occurs check
・ ocl
・ oclc
・ ocode
・ ocp
・ ocr
・ ocs
・ octal
・ octal forty
・ octave


Dictionary Lists
翻訳と辞書 辞書検索 [ 開発暫定版 ]
スポンサード リンク

occurs check : FOLDOC
occurs check
A feature of some implementations of unification which causes unification of a logic variable V and a structure S to fail if S contains V.
Binding a variable to a structure containing that variable results in a cyclic structure which may subsequently cause unification to loop forever. Some implementations use extra pointer comparisons to avoid this.
Most implementations of Prolog do not perform the occurs check for reasons of efficiency. Without occurs check the complexity of unification is
O(min(size(term1), size(term2)))

with occurs check it's
O(max(size(term1), size(term2)))

In {theorem proving} unification without the occurs check can lead to unsound inference. For example, in Prolog it is quite valid to write
X = f(X).

which will succeed, binding X to a cyclic structure. Clearly however, if f is taken to stand for a function rather than a constructor, then the above equality is only valid if f is the {ide


スポンサード リンク
翻訳と辞書 : 翻訳のためのインターネットリソース

Copyright(C) kotoba.ne.jp 1997-2016. All Rights Reserved.